package com.example.rpapp.listener.event;


import com.example.rpclient.dto.data.ActivityConfigVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEvent;


@Slf4j
public class ActivityCreateEvent extends ApplicationEvent {

    /**
     * 活动创建id
     */
    private final ActivityConfigVo activityConfigVO;

    public ActivityConfigVo getActivityConfig() {
        return activityConfigVO;
    }

    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public ActivityCreateEvent(Object source, ActivityConfigVo activityConfigVO) {
        super(source);
        this.activityConfigVO = activityConfigVO;
    }
}
